[Mac] Fix window content sizing issue

Properly upadte the frame of the content, even when the content
is wrapped with a margin container.