Download 'Magnet'
Not a native solution but very lightweight and solves a lot of your issues.
And if you want something extremely powerful and robust, check out Hammerspoon. Much more complicated setup but basically turns the MacOS window manager into a proper tiling wm.