This is fairly simple, take a window screenshot like before by pressing Shift + Command + 4 and then pressing space over a window to select it. Normaly if you click now the preview will have a shadow attached like below, but you can override this.

Just hold Option when you click on the window to take the screenshot. This will make it save a preview without the shadow making the preview larger and better for sharing on things like social media.