You can not but your hand in the sink and turn the light switch on, even if gfci protected. No sink? Power box can be fairly close to sink if has a gfi.
No minimum or maximum from door, common sense applies ,IE not behind the door or have to trim down cover plate cause it is to close to the door or wall angle.