How do I program a mouse click on a floating window?

Move or Click Mouse action is the right tool for this job. The trick is specifying where to click. I see at least a few options:

  1. If the window is the front most window at the time, then use "relative to front window", and enter the offset from one of the corners of the window.
  2. ELSE if the window has a unique name, first make it be front most using the Manipulate a Window action to bring a named window to the front. Then do Step 1 above.
  3. ELSE if the target icon is unique and clear, use the "relative to found image" option, and select "center of the image" and then 0 for the offset coordinates.

I have successfully use all of these options for different use cases. You should be able to make one of them work.
If you need more help, please post a screen shot of the window of interest, and identify the target icon.

Please read:
Tip: How Do I Get The Best Answer in the Shortest Time?