This demo shows how to embed 3D rendering using glow in eframe.
glow
eframe
This is very advanced usage, and you need to be careful.
If you are content of having egui sit on top of a 3D background, take a look at:
bevy_egui
three-d
cargo run -p custom_3d_glow