Add isMacOS() function.
Add extension attribute to Modifier, update Rectangle/PolygonSelectionHandler