Application.RemoveWindow -- detach window object from application object (V1.2)
mui.DoMethod(id, "RemoveWindow", window)
This method removes the specified window object from the application object and
puts the window object in detached state. Window objects in detached state can
either be reattached by running the Application.AddWindow method or
can be freed by calling mui.FreeObject().