Being John Malkovich
(1999)

Dr. Lester (Orson Bean) and his friends enter John Malkovich's mind at the right time so they can go on living.  In an effort to win Maxine, Craig (John Cusack) attempts to reenter Malkovich but is trapped in Emily's (Lotte and Maxine's daughter) subconscious because he entered too late. 
 
John Malkovich, now controlled by Dr. Lester and company, invites Charlie Sheen over and shows him the new timeline he's started with Emily, presumably to explain his plan for eternal life.

Thanks DrummerBrian!