Window object Swipe Up/Down Similar to Iphone Drop Down Menu


static void event_handler_hide(lv_obj_t* obj, lv_event_t event)
{
    if (event == LV_EVENT_DRAG_BEGIN)
    {
        lv_obj_set_hidden(obj, false);
       //need directions to bring down the window
    }
}

lv_obj_t* createWindow_hidden(const char *title)
{
    lv_obj_t* win = lv_win_create(lv_scr_act(), NULL);
    lv_win_set_title(win, title);
    //sets the window hidden, need to find a way to be able to swipe down to show window
    lv_obj_set_hidden(win, true);
   //call event handler

   return win;
}

I want to create a hidden window and attach a drag event that can swipe up and down the window similar to what iphones and samsung devices have. How can I create an event that can detect when a user is dragging down and up the window that is out of sight, if that is even possible in LVGL. Thank you for anyone’s help