gui: Implement handling of focusing the reference pane