She wrote her note to Mr. Carter in Julius's sitting-room, and was just addressing the envelope when the door burst open.
The door was opened when she was writing the address on the envelope.