How can I convert a UI widget to a PNG and export it?

Forgive me if I’m offering a solution you’ve already tried but would HighResShot work for your needs?