Undo for viewport ?

It would be nice to have an undo function for the viewport, instead of having to set bookmarks all the time. For example in landscape mode, if you accidently mess up your view, there is nothing to frame your camera back onto.