NTU has invented a smart window which doubles up as a battery that can power small devices like an LED.