Added back support for changing window resources.