Hold down Option while clicking the window to exclude the drop shadow from the screenshot.
As a vastly more general rule, hold down Option while clicking anything on a Mac to get the alternate/advanced form of the click action (e.g., try Option-clicking the various status icons on the right end of the menu bar).