You know, like how Kakashi talked to his dad's ghost.
Only, you know, the 4th can do it while Naruto is still alive because he rocks so hard.
we know that the 4th mastered space-time-jutsu and the "other world" is just a different dimension. so, somehow, this makes sense.
btw: wasn't the 4th standing on a mountain or something before he stopped Naruto? (I can't really remember.)