See: http://docs.unity3d.com/Documentation/ScriptReference/GUI.Window.html
To stop showing a window, simply stop calling GUI.Window from inside your main OnGUI function.
↧