def METHOD_NAME(self, context, layout, viewer_path):
    space = context.space_data
    row = layout.row(align=True)
    self.draw_spreadsheet_context(row, viewer_path[0])
    if len(viewer_path) == 1:
        return
    self.draw_spreadsheet_viewer_path_icon(row, space)
    if len(viewer_path) > 2:
        self.draw_spreadsheet_viewer_path_icon(row, space, icon='DOT')
        self.draw_spreadsheet_viewer_path_icon(row, space)
    self.draw_spreadsheet_context(row, viewer_path[-1])