Refactor Docking border pane