I take a lot of the stories on this board with a grain of salt, I am sure some of them are made up. Not saying that the user who gave the "knocked on my window and complimented me" story is making it up, but there are some clearly embellished, exaggerated or flat out made up stories here.
I would not be OK with someone knocking on my window, even if it were to compliment me. When I am in my car and the door is closed, I consider that to signal I am in my own private space right now and not open to communication. I drive a convertible and nothing ticks me off more when I have my top down and panhandlers think this gives them open permission to walk up to me at a red light and badger me for money.
The only compliments I have ever received are from those forced to interact with me, such as SAs and employees at stores I am shopping at. I usually get complimented each time I go to an ULTA or Sephora. But as far as complete strangers? Never.