I hope to create a building blackout effect.

Since changing the window material to self-luminous didn’t give you player control, you can instead create a custom material that uses a parameter to control its opacity or emissiveness. This would allow you to programmatically or interactively toggle the blackout effect.