To do this action
Use this shortcut
Close a window
Command-W
Close all open windows
Option-click Close button
Minimize a window
Command-M
Minimize all open windows
Option-click Minimize button
Hide all application windows except the one you're in
Command-Option-H
Move a window without making it active
Command-drag window
Choose a folder that contains the current folder
Command-click window title