What determines if a custom tileset has "borders"?

I've been messing around with RPG Maker 2k3, and I'm working on a reference sheet for custom assets I might make in the future, and the default RTP for 2k3 has grass tiles that can connect to other tilesets, or morph with its shape, how does RPG Maker 2k3 determine this>
Hello, try this:
rm2k3_grid_chipset_template.png


Tutorial:

Original thread: https://forums.rpgmakerweb.com/threads/what-determines-if-a-custom-tileset-has-borders.153561/