Not sure what OP needs. I was thinking that the goal was to prevent the corners / edges from stretching the material. That’s what 9-slice (box) is for:
Here, the borders stay uniform, 10% from each edge is not affected by stretching, the middle does stretch but we can’t see it:

