Student or Learner
I would like to know why driver was hanging the handkerchief from the car window.
The uses of Dad's handkerchief were innumerable. It was a white flag hanging from the car window when the old station wagon overheated on vacation, filled with five squabbling kids, a dog, a cat and two worn out parents. The handkerchief,ever ready for back seat disasters, sponged up melted Popsicles and oozing sandwiches.
When you wrote 'out of the car window', I assumed you meant outside. In that case it might have been a warning (if the overheated car came to rest in a dangerous place - say at a blind corner). People often use a bit of material (any colour) to mark a load sticking out from a vehicle - for example, a ladder, or a piece of furniture sticking out of the back of a hatch-back, so a handkerchief fluttering from a passenger window might be a - not very - effective - warning.
But from the context, I imagine the car window is just a convenient way of keeping the handkerchief always to hand (inside the car).