Remove all usage of .NET MAUI internal APIs (#3273)