Maybe he's the guy from My Little Dashie after Twilight figured out a pony transform spell. Time travel is already cannon, so the time difference between worlds wouldn't pose a problem, and mass memory changing could have been used to keep anypony from questioning his quite sudden appearance.