@Supremative REALLY REALLY THANK YOU!
I also add the get viewport scale from your last code and it works as a charm!