if you click on a node in the left navigator where navigation is restricted and MB opens a new tab, then closing that newly opened tab will return to the original tab.
Otherwise MB just maintains the same tab index. However there is also some logic to avoid choosing the visualiser tab because that can crash MB if no song is playing.