If you really want to use a regular assembly for the service, you could use dependency injection to help you.
Create an interface in your service project to allow the setting and retrieval of preferences:
In the Maui project create an implementation of this interface. You can use the code from the Preferences class for this (https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/storage/preferences?view=net-maui-8.0&tabs=windows)
And use the Service collection to combine the 2.
I have included MainPage as well, because I use this Page to inject the interface into.
The entire code can be found at: https://github.com/JohanSmarius/DependenciesInMaui