Add new internal APIs for UIThread model (#4346)