Titlebar buttons will close their popup if it is already open