There's also Command + Shift + 4 then place crosshair over any window and press spacebar to change the crosshair into a camera icon, then left click on window to take screenshot of just the window itself and it's contents.
If you need to abort, just press Esc.