Dashboard: Prevent two menus to be open at the same time


I would like to automatically “close” any dashboard menu when another menu is opened. I think that could help to lighten the WP dashboard which can sometimes become a bit confusing.


1) User is browsing themes (“Appearance” menu is opened)

2) User clicks on the “Pages” menu

3) “Appearance” menu gets automatically closed.

Any idea how to achieve that in a “clean” way?