Likely the ray is working but bge.render.drawLine() is what is not supported yet
I place a object that is a plane that is 1 bu long on X axis and then align it to the other point and use local scale to stretch between the two points.
Okay, that is what I get for using an experimental version of UPBGE, but I like eevee so it is staying. I still have to figure out why my cube isn’t reacting to the ray
I recently removed bge.render.drawLine support because it was done with direct openGL calls and as the eevee’s developer is beginning the transition to vulkan, I thought we could remove direct openGL calls.
In counterpart, I added pre/post draws callbacks (from blender official) which can do such things.
EDIT: I only managed to have it working in POST_VIEW, so instead of using bpy draw_handlers, you can use bge post_draw callbacks with the code to draw a line (more handy imo)