Macsimize is a free open source macOS app to turn the green window button into Maximize instead of Full Screen.
It also overrides title-bar double-click to use the same maximize behavior.
Click the Macsimize app icon in the menu bar to use Maximize All and Restore All for the windows in your current space.
brew tap apotenza92/tap && brew install --cask apotenza92/tap/macsimize