How can I prevent Opera from closing the window if the last tab gets closed?
This sadly seems to be not available on OSX. You can work around it by pinning a speed dial tab: 



As this is not closable via Cmd-W, it will prevent Opera from closing the window on the last tab. I use this for full screen browsing.