Call a widget action from another widget

Found a solution, using createWidgetFrom and importing header widget:

import {
  default as header
} from "discourse/widgets/header";

So that made me able to access the action method toggleSearchMenu scope.