Closes the window if it was loaded.
- macOS 10.0+
Because this method closes the window without asking the user for confirmation, you usually do not invoke it when the Close menu command is chosen. Instead invoke NSWindow’s
perform on the receiver’s window.