The collapse isn't actually resizing anything, it hides a taller subpage and shows the smaller subpage without changing parent window size.
However the zoom feature does actually change the window size and aligns it to a hidden dock window that can be shown and repositioned by the user with the "D" button