Holding down the 'Option' key while pressing;
The red (left; close) dot, closes all of that application's windows.
The yellow (middle; minimize) dot, minimizes all of that application's windows to the dock.
The green (right; maximize) dot, maximizes all of that application's windows.
In addition, 'Option' clicking an icon in the dock hides all of that application's windows.