ImGui.NET
                                
                                
                                
                                    ImGui.NET copied to clipboard
                            
                            
                            
                        System.InvalidOperationException (XNA)

Is this happening with an unmodified version of the XNA renderer? I'll need some more information about your project to help here.
Bro use MonoGame, make the effort of porting to Monogame over using an unsupported framework.