How to add button to blueprint details panel?

You would have to dig into that class in C++.