You could use an app like BetterSnapTool or Tiles. With both, you can set up Aero Snap-like hot edges to change window size. With BST, you can also set right or middle clicking on the traffic lights to do custom actions, including Windows-style maximise.
The odd few times I need Windows-style maximise, usually in non-native apps that don't properly support AppKit/UIKit resizing behaviour (I'm looking at you, Teams, Discord, etc.), I'll use Tiles to do it. Free app.
It really means "tell the app to size its window to fit the content" so the effect is not always to fill the screen. It's so inconsistently implemented that they might as well just make it work like maximize on Windows.
So like... I know everyone else probably already knows, but is there actually a way to do it?