https://www.youtube.com/watch?v=8gw0rXPMMPE
Granted, conhost will stay for compatibility reasons and this is a new thing.
But it's open source: https://github.com/Microsoft/Terminal . And according to the readme contains the source for conhost.exe too.