Reopen NSWindow when dock icon is clicked

This PR includes an NSApplicationDelegate method to handle reopening the window after being closed with the close traffic light or Cmd-W.