This particular upgrade is significant as there is no support for system.drawing in non Windows platforms. So move to Microsoft.maui based drawing capabilities.
After that in Visual Studio 2022 install the upgrade assistant extension and migrate to net9 sdk. Then update the nugets.