public static void Focus(this ICanvasWindow window) { ((EditorWindow)window).Focus(); }
public static bool IsFocused(this ICanvasWindow window) { return(EditorWindow.focusedWindow == (EditorWindow)window); }