Hold the option key while selection an application in the dock, and all other windows will be hidden automatically, it may not always work with Finder windows.
Hold the option key while selection an application in the dock, and all other windows will be hidden automatically, it may not always work with Finder windows.