public static void Init() { // Get existing open window or if none, make a new one: var window = (ElementsDesigner)GetWindow(typeof(ElementsDesigner)); window.title = "uFrame"; window.wantsMouseMove = true; window.Show(); window.Repaint(); Instance = window; }