How to run a GUI application on docker

How do you run UI based tests inside docker on Linux?