Can all GUI linux apps be made to work using an X server?

Here are the steps I did to get sublimetext3 working on bash. It's great because like this you can edit files from bash without corrupting them.

install and run VcxSrv for Windows from https://sourceforge.net/projects/vcxsrv/

then on bash:

sudo apt install gimp
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y
sudo apt-get update
sudo apt-get install sublime-text-installer
DISPLAY=:0 /opt/sublime_text/sublime_text

and you can create a desktop shortcut with this content:

C:\Windows\System32\bash.exe ~ -c "DISPLAY=:0 /opt/sublime_text/sublime_text"

BTW gimp it's an image editor that contains the libraries (gtk) for sublime_text you can also run it typing:

DISPLAY=:0 gimp

Although there may be a better place to make this change, I add the following line to the file /etc/bash.bashrc to make most X11 apps work (after you've installed and started Xming):

export DISPLAY=localhost:0.0

You will have to save the file then close/open bash again for it to take effect. Then run an X-based app.