The yellow rectangle is the selection tool. Down on the panel are shown the selected objects.
It is implemented with color rendering. Just render all black and the objects which could be selected render with unique (non-black) color.
After that get the colors in the rectangle and the corresponding objects.