Symmetric window resizing

I originally got into Hyprland because of this video (and a few others): https://youtu.be/XK7gal3Wrtk?si=2hjQtnGS49H60lKf&t=52

About 52 seconds in, he switches a window to floating mode, and then resizes it. When resizing the window, it also moved the opposite corner so the center of the window stays the same. How would I implement this?

it’s not floating, it’s pseudotiled :P

Ah, that makes sense. That’s not quite what I’m looking for, but maybe it’s not possible for floating windows. Thanks for the help!