yes, the drop shadow is automatic if you use the window capture mode.
1. Press CMD + Opt + 4 to enter selection mode
2. Press Space to switch to window selection mode
3. Hold Opt and click