xephyr
A nested X server that runs as an X application. tldr-pages
On several platforms
Several platforms
Create a black window with display ID ":2"
Xephyr -br -ac -noreset -screen 800x600 :2IdentifyStart an X application on the new screen
DISPLAY=:2 command_name