There was a tool called Gestureworks Gameplay on Steam, which did kind of the same as Magic Dosbox (custom touchscreen controls), albeit much less sophisticated. It’s been discontinued though, and I don’t know if it’s still available at all.
I used it to play Oblivion on a Windows tablet some 10 years ago, but it was very buggy, with Windows randomly blocking inputs and hiding the overlay. That’s probably part of the reason why it’s so difficult to port Magic Dosbox over to Windows (?), as it’s a much more unpredictable and finicky OS.