This includes removing the current 3D edit view window. Use form editor View3D rendering logic as a guide.