Create a Button in code with a set size, without file

How can I create a Button with a specific Sprite/Node? Without using a file like “button.png” etc for the normal, highlighted etc states?

No one?

To put it in another way, I need to change the normal/highlighted states of a button using in-memory Texture2D.