There's no easy-out way of doing this. This issue has been solved with Input system
in a project of mine, because I used to use EditBox in a way that didn't require it to be visible it was possible to replace it with the Input system.
You might also want to look into GWEN
, which greatly expands UI capabilities by introducing a plethora of widgets, and it's only 5usd.