I don't see any problem with this approach. As long as the sensor is BEFORE the dimmer, all components are getting proper operating voltage.

BTW, I did not know that about Chicago Ghost. Do they also not allow sealed-trim can lights above showers?