How to open vanilla crafting table GUI?

ive seen a lot of discussions where you need to "custom code" for it but there wasnt really a proper answer to that said question, i wanna put this to rest and ask if someone has the code for it