Add new api for sanji-window