public void WindowShouldWork() { bool open = true; Application.Run(new Form1(() => { GUILayout.Begin("Debug", ref open, new Point(60, 60), new Size(400, 400), 1, WindowFlags.Default); GUILayout.End(); })); }