Added sending a resize event when the scaling factor changes on OS X