def METHOD_NAME(self, context, event):
    context.space_data.cursor_location_from_region(event.mouse_region_x, event.mouse_region_y)
    wm = context.window_manager
    wm.invoke_search_popup(self)
    return {'FINISHED'}