Move window to focus on palette when opening it, and move back when closing.