Do, you sleep with your bedroom door open or closed and why?
In that case, keeping the doors and windows shut will give you the best chance of survival, because there will be less oxygen flow and thus a slower burn.
You’ll need to call in a fire emergency, lie low on the ground, and try to use a rag/shirt/towel to filter some of the smoke while you wait to be rescued. You still might die, but at least this way you have a chance.