Very simple example:
Manipulate[
OpenerView[{
"parent",
OpenerView[{nested,doOption}]
}],
{{doOption, False,"Option:"}, {False,True}, Appearance -> "Labeled", Enabled -> True}
]
If you open the outer parent then inner nested OpenerView, then click on the doOption toggle checkbox, the OpenerViews collapse.

OpenerView[{nested, Dynamic@doOption}]see this 148405 or look around for 'nesting dynamic' concept. – Kuba Aug 03 '22 at 06:23