To take a picture of a window:

Choose File > Grab > Window.

Click the window you want to capture.
You can take a picture of a window so you can save or print it.
Choose File > Grab > Window.
Click the window you want to capture.
Preview captures the window within a few seconds. The image is opened in Preview and saved to your desktop.