A headless chrome works for testing. You can even open GUI apps (at least with X11 on Linux) from the container itself, and it will use the host's X session (chrome --no-sandbox).
I've been using a containerized Rails app with VSCode for a while now and absolutely love it.