For example, when you start Xcode, a welcome window appears. You select a recent project, and Xcode opens a new window with your project and closes the welcome window. After closing the project window, only the main menu is displayed. And if you click on the Xcode icon in the dock, a welcome window will appear again.
So the question is how to open the welcome window if the user clicks on the dock icon?
source share