Same here. I assumed the snow globe was a reference to the finale of St. Elsewhere, which famously suggested the entire show was a product of Tommy Westphall's imagination.
Indeed, I'd venture to say, based on that and the Wizard of Oz references, that the entire show was a dream. Ted hasn't been away for three years -- he gets out of the car with one suitcase and is returning home after a shorter trip, still married to Michelle. (If you need in-show theories, he went to interview for the Richmond job but turned it down.)
Having experienced in his dream what it would be like to let things go and deal with his demons, he'll use that in his life in Kansas going forward.