Can you put a curtain of some sort up against the doorway? I have Japanese style
noren curtains up against my internal doorways, and one of them definitely saved my lorikeet's life when I had a meltdown in the kitchen caused by a stray bit of aluminium foil in the microwave. I ran into the kitchen to stop it and my lorikeet would DEFINITELY have flown straight in there after me if it hadn't been for the curtain - she landed on it and it gave me time to shut the door and keep her from flying straight into the fumes in the kitchen! They look like this, with the split down the middle that you walk through ...
For a door that leads outside, maybe you could try something like these magnetic curtains? I actually have some, I just haven't put them up yet, but they have a magnetic closure that closes them behind you....
Nothing can be said to be completely failsafe so you still need to be mindful, but maybe these are worth a try?