How can one player be the winning and losing pitcher in the same game?

I recall as a youngster (like, about 45 years ago) hearing former New York Yankees famed play-by-play announcer Mel Allen explaining one time during a rain delay how it is possible, but can't quite remember exactly how it can be.

It involves a suspended game and a trade between the two teams whose game was suspended, whereby a pitcher who appeared for one side is transferred to the other team after the date of the suspended game and prior to the date of its resumption.