Out of bedroom window through the glass pane. This is a tiny bird about 2 inches long I guess. This is a male. It was persistently knocking on the glass pane thinking there is a clear path to come inside the room. They mainly feed on nectar and insects. They can hover for short durations. Female. Less colorful and smaller, about an inch and a half in length.