添加addParentAPI简化获取父级窗口的流程

Signed-off-by: gaubee <gaubeebangeel@gmail.com>