Window screenshots in macOS by default has a drop shadow. We can disable this by using the below command.

defaults write com.apple.screencapture disable-shadow -bool true