[Mac] Make the backend easier to access from NSView subclasses
[Mac] Fixed some sizing issues in Frame and Expander
Improved size calculation when embedding as native widget