Latest nightly builds of Firefox 3.5 Beta 4 include a new recently closed window feature.
The feature is located in the History menu, right below the recently closed tabs feature, and is sure to save people plenty stress after they accidental close a window.
Beta 4 is expected in the next few weeks, but you can test the recently closed window feature in the latest nightly build.