Feature needed:
Although it can be achieved with the collection system; the possibility to link the children to the parent's visibility of some objects/collections would help a lot.
(A script allows to create this effect on all the existing children, but the driver created in that manner has to be activated running the script, and applies to all children of the scene without exception.)
At the moment, since the 'hide in viewport' option does not support drivers; it could be only be achieved using the 'disable in viewport' option, with the risk of confusion created by this two-levels-visibility.