Make CustomProfileDialog open as sheet on OS X.