In April 2021, Windows announced the preview for the new version of WSL named WSLg with support got graphical user interface applications (GUIs).

Enhance the experience by downloading graphics drivers to support hardware acceleration, etc:

Links: WSL | WSLg | WSL Ubuntu on Windows Community Preview Reference: WSLg Architecture | Windows Insider | NVIDIA Developer Docs Source: WSLg Architecture

  1. Note: NVIDIA drivers for WSL with CUDA and DirectML support are available as preview for Microsoft Windows Insider Program members who have registered for the NVIDIA Developer Program