I might be late to this party to realize this since when I take screenshots of things I normally drag to select what it is that I want to capture. As I was taking a screenshot of some windows on MacOS Monterey I used the ‘capture window’ option and was surprised the screenshot of a window is captured preserving the dropshadow in the image:
I don’t know why I should be surprised by this, but wow, attention to detail is everything. That looks fantastic.