UActorFactory::PostSpawnActor getting called twice when i drag and drop an asset

I had to create an asset by overriding UActorFactory.

I was trying to perform some operation inside my actor once the user drags and drops the asset from the content browser into the viewport.

The problem i face is the UActorFactory::PostSpawnActor getting called twice in my scenario

  1. when the mouse pointer holding the asset entering into the viewport
  2. when I drop (release the left click button) the asset inside Viewport.

My use case requires only to be called in the second scenario.
Can anyone help me to validate this scenario?

View port was detecting my mouse release and it was going into “postspawnactor” twice, so i used "
if ((GetKeyState(VK_LBUTTON) & 0x80) != 0){}" to detect the mouse release and return false for mouse release.