Get the item which is the nearest at the given coordinates. If a container is given the result will be restricted to its children.
| x |
the x position |
| y |
the y position |
| container |
a container or NULL |