Add code loading support for Preferences package
#37595
+105
−14
Merged