I typed in "closed door slam open door" in to google and found this paper:
https://physics.le.ac.uk/journals/index.php/pst/article/viewArticle/469
The English needs some tidying up, and perhaps the Science is a bit too heavy for most, but in summary:
When a house is effectively airtight, pressure differences in front of and behind the door are balanced by air flowing around the door. As the door closes, there's less room for the air to flow but the pressure must still be equalised. The air is finding it harder to fit through the small gap, so more work is going into displacing that air, and the door moves slowly.
Open a window or door in the house somewhere, though, then air outside the house comes into play. Either:
i) the window is open behind the closing door -- air flows from outside to equalise the pressure, or;
ii) the window is open in front of the closing door, in which case as the door closes air can escape from the higher pressure area through the window.
In both cases air resistance no longer slows the door down, so that as it closes finally it does so at "full speed". If there is a drat then the door can even speed up and slam harder than ever.