What matters is how the problem is set up - the revealed door must be a nonprize winner for this to work.
We know there's a prize behind one of 3 doors, right? In our initial choice, all doors carry the same weight.
However, once one door is shown to be a nonprize, the odds shift dramatically.
Initially, we had 1/3 chance of guessing the right door - which means there was a 2/3s chance of the right door being in the other group.
And that does't change once a nonprize door is revealed - our initial guess is still valued at 1/3 and the remaining doors, of which there is now only one door.
Think of it with 100 doors - easier to grok
We choose one and the odds of that being the right door are 1% - which means there's a 99% chance of the prize being behind the other doors, right?
Now - 98 doors are opened and shown to not be the prize door - which now leaves only 2 doors - the one we choose and the other. Obviously, there's still only a 1% chance that the door we chose initially is right - which means that the remaining door has a 99% chance of being the winner.
If you prefer to use algebra - label your door X and all other doors, place them in the group of Y so that: x + Y = 1
Y is (D1+d2+d3+....)
or x + (d1+d2+d3....)=1
If d2 and onward are now 0, then d1 can only be 1-x