Removes the window from the list of windows, essentially closing it.
NOTE: The closed window should be dereferenced in other places in order to be deallocated by the GC. If not,
then it can be used to restore the window without creating a new one, potentially saving it's states.
Removes the window from the list of windows, essentially closing it.
NOTE: The closed window should be dereferenced in other places in order to be deallocated by the GC. If not, then it can be used to restore the window without creating a new one, potentially saving it's states.