[Feature Request] Automatically open Details Panel from Sidebar when Actor selected

I would like a feature where the Details Panel would open from the Sidebar whenever i select an actor in the viewport, and then it would hide if I have no actor selected. (Alternatively a shortcut for doing so) Or if you do it more advanced you could assign which sidebar panels to display on actor selection.

(I have no idea where to post this or if I have missed it and something like this exists already.)