Moves windows to new workspace when Maximized and moves them back when Unmaximized. Inspired by https://github.com/rliang/gnome-shell-extension-maximize-to-workspace with history support
This finds the next available empty workspace, right now there is no plan to support this behaviour, this is a crude script that just works. You can try any of the other extensions that support such options.
Video https://www.awesomescreenshot.com/video/3778461?key=685adf881eabf3cb731239c2b62e5695