Sets whether clicking the close button will hide the window instead of destroying it.
a window
whether to hide the window when it is closed