There is a little known feature that can help automatically show and hide panels when working in Photoshop CC: Auto-Collapse Iconic Panels. I find this useful when I have two columns of panels: where the panels on the far right are fully expanded and the second row of panels are collapsed to “iconic” view.
If you look at the animation below, the Properties panel starts in the collapsed, iconic state. Clicking the Adjustment layer icon adds an adjustment layer and (because the Auto-Collapse Iconic Panels option is enabled), the Properties panel automatically expands. After making a change, clicking on the brush icon automatically collapses the Properties panel back to iconic view.
To enable /disable this feature, choose Preferences > Workspace > Auto-Collapse Iconic Panels or, Control -click (Mac) | Right -click (Win) on the name of any panel (in Expanded view) and select Auto-Collapse Iconic Panels.