Converting Mouse to Custom Viewport

so when you deproject this it should give the proper tile according to your system.