What is this Google Chrome icon appearing in the dock? When I'm using Chrome browser sometimes two icons appear in the dock.  I know the one with dot (left) but what is the one with Mac icon (right)?  The right one just disappears if I click on it.  If I don't do anything the icon (right) will disappear after awhile.
I think this is handoff feature.

How do I know which device is sending the handoff to my Mac?
Can it be security hole if I click on it?
Since someone can send it to my Mac, can my mac accidentally send the handoff to other device? i.e. I'm concerned if the two or more devices are allowed to communicate bidirectionally.
Yes, the icon you see on the right is Handoff from another computer that you are signed into and are near. That computer has a window open in a web browser. (I'm assuming you have Chrome as your default browser)
You can ignore it if you want, or select it to &quot;hand off&quot; what you are doing on the other computer to this current one.
To answer your questions;

The icon that you see there usually shows what device is &quot;handing off&quot; from. In this case, it's a desktop, not a mobile device.
Unless someone is using your computer without you knowing, it's probably not a security issue. This only is shared between computers that are signed in with the same iCloud account.
Someone can Airdrop something to you, but you have to agree to it. Airdropping from a computer that are are signed into with your iCloud account to another computer, also signed in with the same iCloud account, can just transfer files without asking. No third party can just send, or push, something to you without you agreeing to it.

I hope this helps!