see documentation:
https://learn.microsoft.com/en-us/dotnet/maui/migration/?view=net-maui-9.0
Note: Xamarin support ended a year ago, and Maui has drifted since the documentation was written. Also you may need to find replacement 3rd party packages, if the old does not support Maui.