> […] double-clicking the Finder titlebar only expands it vertically […]
This behavior is called “Zoom”, and it’s defined per-application by that application. You could change that system-wide to minimize.
> […] when I close a window and then press Cmd+tab, the icon is still there, and if I select it nothing shows up.
Yes, the application hasn’t quit. You’ve only closed its last window.