Exactly what is your plan? Will the closed portion be totally closed? If so, your closed portion will really act more like a small closed 1x12. It'll truly be like two separate 1x12s stuck together (an open and closed)... for better or for worse. In that case you'd probably be better off with two actual 1x12s.
If you were planning on just merely keeping the rear panel solid behind the "closed" speaker but not actually fully sealing it closed, then both speakers will simply respond like an open back.
In my opinion, while it might seem like a cool idea on paper, I don't know if it's worth building, either way. If you want the best of both worlds out of a 2x12, just make two back panels... one with an opening and one that is solid... swap on whichever one sounds better in a given situation.
I have a nice closed back 2x12 and I made an "accessory" open back rear panel for it... and I swap on whichever back panel depending on what I'm going for. In that way, the cabinet will respond like a true 2x12 whether open or closed, and not like a 1x12.