I have a document-based macOS application, which is a basic text editor. The default behavior is to create a new window for every opened document. But I want to only have one wi