This needs mathematics!
Specifically something to do with the camera View Matrix, camera Projection Matrix, Mouse co-ordinates, and the Window resolution. I know these are the parameters needed, but I still dont know how to put them together to get the result.