you cannot use tmodloader for this, but you can, for example, decompile terraria, modify the code using api like Harmony
if you go to create a graphical interface then preferably use a fork imgui.net, imguics but texture mapping and text input do not work in it (this does not work in imgui.net with terraria) but you can try to fix it