It’s better to keep doors closed for the area you want heated.
Radiators, electric panel heaters and convection heaters all work by creating a convection current in a room. As hot air rises, it circles around to the other side of the room, cools and sinks and travels back along the floor to the heater to be reheated again.
Closing doors makes sure this current remains within the designated space.