You could try adding a reference to the Microsoft.Windows.Compatibility NuGet package to the project generating the .NET6 DLL.
You might also need to add <UseWindowsForms>true</UseWindowsForms> to the project file if the framework DLL uses winforms.