HowTo: Using Xephyr to Create a New Display in a Window

You might want to run one X Window System desktop environment on your local computer while accessing second computer, including its own desktop environment, using the first computer’s screen and keyboard. This is known as "X nesting". Open-source clients such as Xnest and Xephyr support X nesting.
more ...