This behavior is by default, all the overlays can be showm/hidden using the overlay menu ( https://docs.unity3d.com/2022.3/Documentation/Manual/display-and-hide-overlay.html ).
To show the Camera overlay after you hide it, just press the `/~ key on the top left of your keyboard with a camera selected and you will be able to enable that overlay as active/visible.