I always assumed this was a reference to Dorothy from the 'Wizard of Oz', played by Judy Garland. The phrase dates back atleast to WW II. It could be that the term relates to an American poet and critic Dorothy Parker.

See wikipedia for a fuller exploration.