i did try replacing the $Dir with file location and it works
echo -n "Drag and drop file: " read Dir echo $Dir sudo tar -xvf $Dir ```