When switching documents from QuickOpen, pop the modal bar out before switching and animate after

For #5159.