How can I make a button with a non-standard shape or with an image and ignoring the transparent area when pressed?

the main part of the code is related to blueprints.
Good day to everyone. How can I make a button that will have a non-standard shape? Or a button of a standard shape, on which an image with transparency is superimposed , and the cursor does not respond to transparent areas ?
(I apologize for the mistakes, English is not my main language, but I hope I conveyed the essence of the question correctly)