How do I draw tile to a window with the TileID?

Hey, I was wondering how to draw a tile to a window or the screen in general through scripting.

(and by tile i mean the things in the tilesets, used for maps and whatnot)

I know it seems simple but i cannot figure it out, looking though the code i have found things regarding how characters can be tiles, however i cannot find a way to make it so i can just draw a tile on the screen.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-draw-tile-to-a-window-with-the-tileid.116919/