This was also done on Danny Phantom. In one episode, he splits himself into hero and slacker, so that he can take care of the ghost problems in town and spend time with his friends. But as expected, things don't work out according to plan.
Strangely enough, both those series had an episode...