Object Type Visibility
This popover lets you control the visibility and selectability of the various object types. For example, you can hide all the Lights in the scene with one click.
The settings only apply to the current 3D Viewport. Object types marked as unselectable can still be selected in other viewports and in the Outliner, for example.
Outliner Restriction Columns for making individual objects invisible or unselectable across all viewports.