Unable to bring control to the parent window from a pop up to create a box on click of mouse on the orange ground plane

Hi,
I wanted to create a box on click of the mouse at the orange ground plane


This is the initial screen
here if i click on Create Goods and enter the input values and click the Create button I’m able to create a box at the clicked position on the orange plane


I want to achieve similar functionality in the Putaway button here on click of Putaway there is a popup window appearing

But now I’m not able to create the box. The functions are all called correctly.but i noticed that the mouse down function is not working now can someone suggest want went wrong
i have attached the zip file of the projectwarehousenewcreation.zip (269.6 KB)