From Wiktionary, the free dictionary
Apparently in reference to the women who would watch for their husbands to return from the sea, but would sometimes learn that they had been killed.
widow's walk (plural widow's walks)
- (US) A raised platform on the roof of a house, especially one on a coastal house originally used for viewing the arrival of shipping