I\'m surprised this doesn\'t happen automatically, but I would like my applications window to open automatically when the Dock icon is clicked.
Just to clarify, when
A solutions to add to the accepted answer:
With the accepted answer the reopened window did not react to mouse events anymore.
When using the accepted answer you also have to make sure to uncheck "Release when closed" in the Attributes Inspector of the window in IB. This fixes the unresponsive window problem.