GalaSoft recommends you switch to CommunityToolkit.Mvvm. Therefore I'd recommend you first migrate your app over to this. Since it supports .NET Standard 2.0 you can do this in your existing project.
Once you've switched to the newer library then switch to .NET 5 from there using the guidelines given here. Actually you'll want to target .NET 6 as .NET 5 is not supported as of late spring of this year.
Note that Winforms/WPF are a little different than just migrating a console app over. I would probably recommend that you create a brand new WPF project targeting .NET 6. This will contain the necessary project settings to work properly with WPF under .NET 6. Then either copy the relevant sections to your existing project or move your code over to the new project. In my experience this reduces the likelihood of something not working properly. For example Winforms has a special build property that enables the designer. Without it the designer doesn't work properly. Posting a question in the forums related to this would be hard to diagnose unless someone knew you migrated your existing project and therefore were missing a property that is automatically set on new projects.