DoH as a protocol has no issues with HOSTS files. The issue is browsers implementing DoH instead of operating systems. If browsers stayed in their lane, and let operating systems implement DoH, compliant with corporate IT design and systems like the HOSTS file, everything would be fine.
Microsoft has already committed to implement DoH in Windows itself. Browsers just need to stop trying to be their own DNS clients.