Hi,
As Sandra mentioned that it is generic dialog, so you can remove the Standard Details Button and put your custom button with same icon and tool tip.
On Click of that button(In PAI) create a screen similar to Details screen and add your custom button.
Thanks
Deepak Sharma