public static bool TryRestoreState(this SciterGraphics graphics)
 {
     return(graphics?.TryRestoreStateInternal() == true);
 }