Well, yeah, I got the answer from the Carbon-Development site. I'm actually passing a Java-type coordinates to the rectangle. that's a first mistake. Then, I should work on better the error message, so that I can pinpoint better the problem.
Would you know why I can't display a FloatingWindow ...