GUI-apps in Docker Desktop

Hi,

Before Docker Desktop, I used the “cypress/included” container which has a graphical application (a browser) that runs in the container but displays in the host.
According to this information page: Run Cypress with a single Docker command, you could start like this:

DISPLAY=$IP:0
docker run -it \
  -v $PWD:/e2e \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -w /e2e \
  -e DISPLAY \
  --entrypoint cypress \
  cypress/included:3.2.0 open --project .

Now with Docker Desktop, this doesn’t work anymore (Error: Unable to open X display.).

How can you run GUI-application when using Docker Desktop?