The Newhart Show. In the final episode Bob wakes up next to Suzanne Pleshette from “The Bob Newhart Show” having dreamt living in an inn in Vermont. Amazingly funny.
The second story arc of Neil Gaiman’s Sandman has this kind of ending. The part that’s interesting about it, though, is that it’s a case where waking up in no way undermines the reality of the story.