A couple of slight snags I can think of:
1) Corns are active at times of low/no light - dawn, dusk and overnight. As it grows, it's likely to be moving around a lot as you're trying to sleep and could prove quite disturbing.
2) Many chemicals are dangerous to snakes, so you'd have to restrict use of things like deodorant, to the bathroom.
Having the tank out of direct sunlight is fine - recommended, in fact. Being in a room which has natural sunlight is a good idea, so in that respect your bedroom sounds like it will do the job.