Yes, that might be the case, but I don't want to be dependent on the implementation differences of different operating systems.
I like Apple's approach in this case. Enforce the usage of HiDPI displays by default with at least ~200 PPI which needs integer scaling. Instead of trying to work around the issue, they simply bypass it, which is what I'll do in the future.