Fix dialog z-order on Mac