This is an add-on for Blender 2.80+.
It adds a panel that lets you quickly manage the visibility of your collections, in the same style of the layers widget of classic Blender 2.79.
After installed and enabled, this add-on panel can appear on the viewport Sidebar (N), or as a widget on the viewport header -- you can set up in the add-on preferences if you only want to have the panel, the widget or both.
Other than that, it's really simple to use! You click on each button to toggle the visibility of that collection, and you can hold Shift + click-drag to toggle multiple collections at once.