Looking for certain script (drag'n'drop)

Hi guys,

Im looking for a script or mutliple scripts that can achieve the following or kinda achieve the following:

A) show objects (2 icons , png) on the screen with a background that I can choose.
B) Randomly show (A)
C) Having drag and drop possibility so users can drag and drop 2 icons to a certain position on the screen.
D) I want to measure the distance in pixels or mm where users have dropped the icons and compare this measurement with the original place the 2 icons were.

Do you know a script similar to this or some scripts than can be combined and used, please let me know.
Any help is appreciated.