pub fn draw_close(painter: &Painter, rect: Rect, color: Color32)
Draw a close icon (X) within the given rect.