macOS has subtle window snapping already, I think introduced in 10.13 but I'm not certain. Moving and resizing windows tries to snap to edges of other windows, but it's a relatively minor effect (which is good because aggressive snapping is really annoying), and only triggers when you're moving slow enough.