Essentially an Extension is just a website.
So you just need to make a display and some buttons.
And update said display with Javascript
And make the buttons do stuff (again with JS)
The hard bit here is you need a relay server that your Extension and your Unity game talk’s to.