Panel xbl won't exists yet, and for frame swapping, we just have to ensure that it is attached before the call to openPopup that will dispatch the popupshowing that leads to the call to swap.
And as the second call to `attach` is done before `open`, it is called before the call to openPopup.