I thought about this a bit - and it’s a tough one!
For a door such as you have pictured, I would give it dynamic open/close capabilities by setting its axis on one of the corners on the hinged side, then using an “OnClick” action such as “animate(RotZ,90,0)” (you might need -90,0"), but that won’t work if you also have a “Hinged: Left/Right” option.
I’d approach it with two doors! Used the “Hinged: Left/Right” option to determine which door is visible (using the “Hidden” attribute and some logic. Give them axis on their hinged side, then use the “OnClick” action to animate a custom variable of the enclosing component - call it something like “Open_Angle” - animate it 0,90, then derive the RotZ for each actual door from the “Open_Angle” attribute. You might have to go through some trial and error to get both doors to swing correctly.
Hope this helps.