Enclose root BorderPane with a StackPane, so now the rootLayout is a StackPane