For details about how preferredSide, x, y and alignment decide the final position of the popup, see OverlayStage.show.