Ok, I understand.
So, you have (12,2V -10,3V) / 4700 Ohm = 0,4 mA to Controller-pin, if your switch is open, no connection to ground.
In case of your pin configuration, the controller switches a resistor Rx to 5V and a resistor Rx to 0V and you get 2,5V at the pin, if it is open.
So, the 0,4mA flows from 10,3V to 5V and to 0V. Theoretically you have 1/3 from 0,4mA to 5V power supply = 0,13mA.
I don't think, this damage anything. Resistor from 5V to output is about (10,3V-2,5V)/0,4mA*2=39000 Ohm.
Only danfoss devoloper can tell you if it is OK to do so. But, I think, it is OK.