Several mods and data packs provide this "drawing-to-spawning" mechanic. Depending on your version and platform, you can choose from these popular options:
For mobile and console players, add-ons like the Drawing Items Mod on MCPE-Planet allow you to decorate blocks and spawn items through drawing interfaces.
Minecraft , But If You Draw Any Item You Get It: Mod Download & Guide
This mod brings a Microsoft Paint-like interface directly into your block world. You can find various versions of it on Modrinth and community forums like Hypixel .