Middleware engines already solved that problem for about 20 years now, no need for WebGPU outside the browser.
A plugin framework for 3D APIs is probably the easiest part to implement on a game engine, specially when API like OpenGL and Vulkan already require implementing one due to extension spaghetti.