Did you know that Microsoft came out with "Visual Basic for DOS"?
It was a full event-driven UI that ran in DOS (text mode) and used the mouse to place/draw controls on "windows" - that even had shadows! (darker colored text underneath the right and bottom side to give the shadow effect).
It was the next generation of MS Basic Pro - I was a beta tester for it - code named "Esher"
And it looks like you can download a free copy from here:
https://winworldpc.com/product/microsoft-visual-bas/10-for-dos