Yes, if your doors and windows are set up to be interactive, this is possible.  To learn more please watch this video: