Make to components - one door closed, one door open - you can use make_unique to keep a lot of geometry the same.
Ensure all of the components' contents are on Layer0.
Place the two component instances over each other.
Now set up two layers - I use the following names for clarity only - you choose - LayerOpen and LayerClosed.
Assign the layers to the matching component-instance.
Switch the 'LayerOpen' layer off so you only see the 'closed version.
Save the view, with layers etc as a Scene-Tab.
Repeat this swapping the ON/OFF layers so 'LayerClosed' is hidden and 'LayerOpen' shows.
Save that as a different Scene-Tab.
In Layout you can use these different Scene-Tabs in different 'viewports'...
You can apply this to many aspects of your model... making things visible/hidden as you desire - learn to use Layers and Scene-Tabs effectively...