xephyr

A nested X server that runs as an X application.

TLDR

Create a black window with display ID ":2"

$ Xephyr -br -ac -noreset -screen [800x600] [:2]
copy

Start an X application on the new screen

$ DISPLAY=:2 [command_name]
copy

Copied to clipboard
free 100$ digital ocean credit