Post #1392: . Use this code in On Update slot:
bpy.ops.pme.pm_enable_by_tag(enable=props(menu), tag="Toggle Hidden Panel Group")
Thank you. It works. I think I can kind of understand the idea now.