Click and drag a plane

After looking through all the other similar questions to no avail i give in.

Does anyone have any idea as to how i would go about clicking an object (a plane) and being able to drag the object until releasing the mouse button.

thanks in advance

Just by searching and looking at the top hits, I was able to find a couple of posts that worked perfectly fine. I verified this by taking the time and using this script in an empty project.