Is there any way to set particular session (partition: 'persist:somename') to remote BrowserWindow which is already opened

Is there any way to set particular session (partition: ‘persist:somename’) to remote browserwindow which is already opened. If I have set partition: ‘persist:somename’ at the time of BrowserWindow creation it works fine.
For ex:
capWin = new electron.BrowserWindow({
backgroundColor: ‘#ffffff’,
center: true,
height: 450,
title: ‘Pratiotion Test’,
useContentSize: true,
width: 450,
webPreferences: {
partition: persist:somename
}
})

But how can set remote BrowserWindow which is already opened.I am new in electron.Please help me.