Click On Contact And Pass it to Custom Floating Window

Hi Everyone. Hope You All Good.
I need to know about pipedrive contacts pass in custom floating window softphone.
how can i do it? i want if a user click on contact it’s open custom floating window or on click contact it’s pass contact in softphone. Plz Help Me…