WSL2 still runs in a VM so it has the performance implications of that, not that they usually end up being that significant (I have found that memory usage in WSL2 is usually ridiculously high, though).
I think the support for Linux GUI applications is achieved by running an X server on the Windows side of things.
WSL2 even supports running Linux GUI applications and GPU passthrough.