Drag component from a GameObject's inspection panel to the public variable slot of another GameObject?

Hello, it seems that I am having a very strange issue where I can not drag a component into the public variable slot of another GameObject’s script. This seems to be because I’d have to switch my view to a different object, and I can’t do that unless I let go of the component I am holding with my mouse.

Open a second Inspector tab. (Right-click on a tab and select Add Tab > Inspector.)

In the first inspector tab, select the first GameObject and click the padlock in the upper right. This will lock the inspector on that GameObject.

In the second tab, select the second GameObject. Now you should be able to drag from one to the other.