Useful tip I learnt today about screenshots on MacOS: you can take a screenshot of a window without the drop shadow by holding down the Option key when clicking the mouse.

I wish I looked this up sooner, and not just turn to ImageMagick to try and remove the shadow myself.