Resize windows while maintaining proportions in OS X