Viewbased stereoscopic drawing

Is there a way to render stereoscopic (left/right) images in a 2d plane that resides in a swiftUI view?

I know this is possible in realityKit shaders, and in immersive metal composits, but is it possible via swiftUI shaders, CAMetalLayer, etc?

I'd like to draw a 2d window with standard UI chrome (resize, move etc) that displays stereoscopic content on the flat plane of the window.