Should the glass doors on my woodburning fireplace be open or closed while I have a fire burning?

It’s a standard, wood burning fireplace with chimney / flue. I don’t understand the purpose of the glass doors.