Windows Terminal does indeed paint it’s own title bar as described in the Custom Window Frame Using DWM documentation.
This isn’t yet available in GLFW, though it might be able to be hacked on top using the GLFW Native Access API.
There are a few custom versions of GLFW which have altered undecorated windows in GLFW which might make it easy to add this functionality, for example see this post.