there are 2 points, both of which i am not sure if it is intended behavior:
1: the snapping doesnt happen only to the outside edge of a window, but also the inside. (see attachment, those windows snap together)
2: snapping also happens 'through' obstructed windows.
imagine a fullscreen app being between window A and B (from case 1), snapping still occurs.

case_1.PNG