Popup issues in perspective

sessions = system.perspective.getSessionInfo()
	for session in sessions:
		for pageId in session.pageIds:
			if session.id!=self.session.props.id:
				system.perspective.openPopup(session.id, 'PopUp/popup-warning',Title ="WARNING!!",position = {'left':100,'top':100},sessionId=session.id,pageId=pageId)
				

If I try to use position or showCloseIcon inside this openpopup ,popup will not work.Any solution for this issue?
Thanks in advance.