Finally managed to replicate #dwm's mod key plus middle mouse button click behavior. Now also in sway I can switch back and forth from a tile to a float.
See the link for more details (line 692):
https://codeberg.org/oxo/dotf/src/branch/main/sway/config
#linux #sway #swaywm #dotfile