Apps that support Vulkan are using the GPU by default without any additional configuration.
If the apps don’t support Vulkan then you can use VirtualGL for them to use GPU:
Seamless GPU passthrough on Qubes OS with VirtualGL
But the performance could be lower compared to the dedicated display, because the image rendered by GPU is copied to dom0 using CPU to be displayed there (if CPU is the bottleneck).