C++ equivalent of "Convert Mouse Location To World Space"

If it’s what you needed remember to accept the answer so it might help others ^^