Is this window maximized.
class Maximizer extends EditorWindow { function OnGUI() { maximized = GUILayout.Toggle(maximized, "Maximize window"); } }